$OpenBSD: patch-config_configure,v 1.5 2016/03/01 09:05:33 dcoppa Exp $
--- config/configure.orig	Thu Feb 11 09:52:53 2016
+++ config/configure	Thu Feb 11 09:53:12 2016
@@ -7021,7 +7021,7 @@ if ${ac_cv_lib_png_png_create_read_struct_+:} false; t
   $as_echo_n "(cached) " >&6
 else
   ac_check_lib_save_LIBS=$LIBS
-LIBS="-lpng  $LIBS"
+LIBS="-lpng -lz -lm $LIBS"
 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 /* end confdefs.h.  */
 
@@ -7151,7 +7151,7 @@ if ${ac_cv_lib_png_png_access_version_number+:} false;
   $as_echo_n "(cached) " >&6
 else
   ac_check_lib_save_LIBS=$LIBS
-LIBS="-lpng  $LIBS"
+LIBS="-lpng -lz -lm $LIBS"
 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 /* end confdefs.h.  */
 
@@ -9433,7 +9433,7 @@ else
   { $as_echo "$as_me:${as_lineno-$LINENO}: checking GToolbox.popup_menu args" >&5
 $as_echo_n "checking GToolbox.popup_menu args... " >&6; }
   GTOOLBOX="$OCAMLLIB/$LABLGTK_NAME/gToolbox.mli"
-  grep popup $GTOOLBOX | grep -i button 2> /dev/null && GTOOLBOX_ARGS=new
+  grep popup $GTOOLBOX | grep -q -i button && GTOOLBOX_ARGS=new
   if test "$GTOOLBOX_ARGS" = "new"; then
     GTOOLBOX_POPUPMENU=' ~button: button ~time: time '
     { $as_echo "$as_me:${as_lineno-$LINENO}: result: new" >&5
@@ -10835,7 +10835,7 @@ cd ..
 
 echo ""
 echo "Building dependencies (if it blocks, try '$GNU_MAKE depend' to see the problem)"
-$GNU_MAKE depend 2> /dev/null > /dev/null || echo "Building dependencies fails: try: '$GNU_MAKE depend'"
+$GNU_MAKE depend || echo "Building dependencies fails: try: '$GNU_MAKE depend'"
 
 echo ""
 printf "Configuring MLDonkey %s" "$MLDONKEY_VERSION"
